<!-- head -->
<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-md-12">
        <ol class="breadcrumb">
            <li><a>主页</a></li>
            <li><a>管理中心</a></li>
            <li class="active"><strong>预警事件查询</strong></li>
        </ol>
    </div>
</div>

<!-- 主要内容 -->
<div class="wrapper wrapper-content animated fadeIn" ng-app ng-controller="warningEventsCtrl">
    <form class="form-horizontal" id="form1">
        <div class="row">
            <div class="col-lg-12">
                <div class="">
                    <div class="ibox float-e-margins">
                        <div class="ibox-content">
                            <div class="ibox-title">
                                <h5>查询条件</h5>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">来源系统:</label>
                                <div class="col-sm-2">
                                    <select class="form-control" ng-model="info.status"  ng-options="x.value as x.text for x in statusSelect">
                                    </select>
                                </div>
                                <label class="col-sm-2 control-label">预警时间:</label>
                                <div class="col-sm-5">
                                    <input id="d5231" class="form-control" type="datetime" ng-model="info.createTimeBegin" onchange=""  style="width:auto;display:inline-block;"
                                           onFocus="var d5232=$dp.$('d5232');WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd HH:mm:ss',onpicked:function(){d5232.focus();},maxDate:'#F{$dp.$D(\'d5232\')}'})"/>
                                    ~
                                    <input id="d5232" class="form-control" type="datetime"  ng-model="info.createTimeEnd" onchange=""  style="width:auto;display:inline-block;"
                                           onFocus="WdatePicker({skin:'whyGreen',dateFmt: 'yyyy-MM-dd HH:mm:ss',minDate:'#F{$dp.$D(\'d5231\')}'})"/>
                                </div>

                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">事件类型:</label>
                                <div class="col-sm-2">
                                    <select class="form-control" ng-model="info.eventType"  ng-options="x.value as x.text for x in eventTypeSelect">
                                    </select>
                                </div>
                                <label class="col-sm-2 control-label">通道名称:</label>
                                <div class="col-sm-2">
                                    <select class="form-control" ng-model="info.acqEnname" ng-options="x.value as x.text for x in acqEnnameList"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <div class="col-lg-12">
                                    <div class="col-sm-1"></div>
                                    <button class="btn btn-primary6 btn-mr20" type="button"
                                            id="btnSubmit" ng-click="query()">查询</button>
                                    <button class="btn btn-primary3 btn-mr20" type="button" ng-click="clear()"
                                            id="btnSubmit2">清空</button>
                                    <button class="btn btn-primary7 btn-mr20" type="button"
                                            ng-click="import()">导出</button>
                                </div>
                            </div>

                        </div>
                    </div>

                    <div class="ibox float-e-margins">
                        <div class="ibox-content">
                            <div class="form-group">
                                <div class="col-sm-2 checkbox">合计:<span ng-bind="total"></span>条</div>
                            </div>
                            <div class="form-group">
                                <div ui-grid="warningEventsGrid" ui-grid-pagination ui-grid-selection
                                     ui-grid-resize-columns ui-grid-pinning class="grid">
                                    <div ng-show="loadImg" class="timg"></div>
                                </div>
                            </div>
                        </div>

                    </div>

                </div>
            </div>
        </div>
    </form>

</div>